// app.js
App({
  onLaunch() {

    //获取系统信息
    wx.getSystemInfo({
      success: (e) => {
        this.globalData.StatusBar = e.statusBarHeight;
        let custom = wx.getMenuButtonBoundingClientRect();
        this.globalData.Custom = custom;  
        this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
      },
    })


    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
// 在微信小程序的登录页面的 js 文件中
  wx.login({
    
  });
  
  
  },
  globalData: {
    userInfo: null,
    defaultUrl: 'http://192.168.1.7:8099',
    // defaultUrl: 'http://localhost:8099',

  }
})
